#ifndef EDITUSERDIALOG_H
#define EDITUSERDIALOG_H

#include <QWidget>
#include <QDialog>
#include <QPushButton>
#include "./model/datacenter.h"

namespace Ui {
class EditUserDialog;
}

class EditUserDialog : public QDialog

{
    Q_OBJECT

public:
    explicit EditUserDialog(QWidget *parent, const QString& text, model::AdminInfo& adminInfo);
    ~EditUserDialog();

    bool getCommitResult()const;

    void setPhoneEditReadOnly(bool isReadOnly = true);

private slots:
    void onSubmitBtnClicked();
    void onCancelBtnClicked();

private:
    Ui::EditUserDialog *ui;
    model::AdminInfo& adminInfo;
    bool isCommit = true;
};

#endif // EDITUSERDIALOG_H
